/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/20/12
 * Time: 12:45 AM
 */
Ext.define('Ctc.view.EditorGrid', {
    extend: 'Ext.grid.Panel',
    alias:'widget.ctcgrid',
    initComponent:function(){
        this.columns=this.buildColumns();
        this.tbar=this.buildTbar();
        this.dockedItems=this.buildDocked();
        this.plugins=Ext.create('Ext.grid.plugin.CellEditing', {
            clicksToEdit: 2
        });

        this.callParent(arguments);
    },
    buildDocked:function(){
        var tool=Ext.create('Ext.toolbar.Paging',{
            store: this.store,
            dock: 'bottom',
            displayInfo: true
        });
        return [tool];
    },
    buildColumns:Ext.emptyFn,
    buildTbar:Ext.emptyFn

});